package com.twu.biblioteca.Options;

import com.twu.biblioteca.DataBase.User;

public class DisplayUserInfoOption {
    private User user;
    private String name = "User Information";

    public DisplayUserInfoOption(User user) {
        this.user = user;
    }


    public String getName() {
        return name;
    }

    public void execute() {
        System.out.println("Name" + "           " + "Email" + "          " + "Phone");
        System.out.println(user.getName() + "     " + user.getEmailAddress() + "    " + user.getPhoneNumber());
    }
}
